// tabBarComponent/tabBar.js
const app = getApp();
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    tabbar: {
      type: Object,
      value: {
        color: "#6e6d6b",
        selectedColor: "#ff4081",
        borderStyle: "white",
        backgroundColor: "#fff",
        list: [
          {
            pagePath: "/pages/index/index",
            iconPath: "icon/tab1.png",
            selectedIconPath: "icon/tab1_selected.png",
            text: "首页"
          },
          {
            pagePath: "/pages/audio/audio",
            iconPath: "icon/tab2.png",
            selectedIconPath: "icon/tab2_selected.png",
            text: "专家"
          },
          {
            pagePath: "/pages/middle/middle",
            iconPath: "icon/tab3.png",
            selectedIconPath: "icon/tab3.png",
            isSpecial: true,
            text: "足迹"
          },
          {
            pagePath: "/pages/discover/discover",
            iconPath: "icon/tab4.png",
            selectedIconPath: "icon/tab4_selected.png",
            text: "工作坊"
          },
          {
            pagePath: "/pages/mine/mine",
            iconPath: "icon/tab5.png",
            selectedIconPath: "icon/tab5_selected.png",
            text: "我的"
          }
        ]
      }
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    // isIphoneX: app.globalData.systemInfo.model == "iPhone X" ? true : false
  },

  /**
   * 组件的方法列表
   */
  methods: {}
});
